home *** CD-ROM | disk | FTP | other *** search
- #
- # Timeout after 5 mins
- #
- set timer = 5
-
- #
- # Main Menu
- #
- main_menu:
- set textColor = color[white on black]
- clear
- set textColor = color[yellow on blue]
- print " ULTIMATE BOOT CD VER 3.3 "
- print " http://www.ultimatebootcd.com/ "
- print " "
- set textColor = color[white on red]
- print " [Main Menu] "
- set textColor = color[white on cyan]
- print " "
- print " "
- print " "
- print " "
- print " [F1] Mainboard Tools "
- print " [F2] Hard Disk Tools "
- print " [F3] Filesystem Tools "
- print " [F4] Other Tools "
- print " [F5] User-defined Tools "
- print " [F6] DOS/Linux Boot Disks "
- if file[\INSERT\INSERT]; else set textColor = color[brightgrey on cyan]
- print " [F7] INSERT for UBCD "
- set textColor = color[white on cyan]
- print " "
- print " [F8] Boot first hard disk "
- print " [F9] Boot second hard disk "
- print " [F10] Drop to console "
- print " "
- print " "
- print " "
- print " "
- set textColor = color[white on blue]
- print " Please select an item (First hard disk will boot after $(timer) minutes) "
- set textColor = color[white on black]
-
- #
- # Actions
- #
- getkey 60 goto timeout
- clear
- if ($lastKey == key[f1]); then script mboard.scn
- if ($lastKey == key[f2]); then script hdd.scn
- if ($lastKey == key[f3]); then script filesys.scn
- if ($lastKey == key[f4]); then script others.scn
- if ($lastKey == key[f5]); then script custom.scn
- if ($lastKey == key[f6]); then script bootdsk.scn
- if file[\INSERT\INSERT]
- then if ($lastKey == key[f7]); then script insert.scn
- if ($lastKey == key[f8]); then script boothdd0.scn
- if ($lastKey == key[f9]); then script boothdd1.scn
- if ($lastKey == key[f10]); then goto console
- goto main_menu
-
- #
- # Decrement timer and refresh display, or boot from HDD0 if timeout
- #
- timeout:
- if $timer == 0; then script timeout.scn
- set timer = $timer - 1
- goto main_menu
-
- #
- # Drop to console
- #
- console:
- cd /
- clear
- help
- end
-